package com.zjsos.dao;

import org.springframework.transaction.annotation.Transactional;

public class BaseServiceImpl implements IBaseService{

	private BaseDao baseDao;

	public BaseDao getBaseDao() {
		return baseDao;
	}

	public void setBaseDao(BaseDao baseDao) {
		this.baseDao = baseDao;
	}

	@Transactional(rollbackFor = Exception.class)
	public <T> void save(T u) throws Exception {
		baseDao.save(u);
	}
}
